package com.cm.util;

import org.opencv.core.Core;
import org.opencv.core.Mat;
import org.opencv.imgcodecs.Imgcodecs;
import org.springframework.stereotype.Component;

@Component
public class TestUtil {

    static {
        System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
        System.out.println(Core.VERSION);
    }

    public static void test() {
        Mat src = Imgcodecs.imread("D:\\1.png");
        System.out.println(src);
    }

}
